package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@TableName("chongdianzhuangorder")
public class ChongdianzhuangOrderEntity {
    /**
     * 主键id
     */
    @TableId
    private Long id;
    private String orderid; // 订单编号
    /**
     * 电桩编号
     */

    private String dianzhuangbianhao;


    /**
     * 每时单价
     */

    private Float meishidanjia;

    /**
     * 用户账号
     */

    private String yonghuzhanghao;

    /**
     * 用户姓名
     */

    private String yonghuxingming;

    public String getYonghuzhanghao() {
        return yonghuzhanghao;
    }

    public void setYonghuzhanghao(String yonghuzhanghao) {
        this.yonghuzhanghao = yonghuzhanghao;
    }

    public String getYonghuxingming() {
        return yonghuxingming;
    }

    public void setYonghuxingming(String yonghuxingming) {
        this.yonghuxingming = yonghuxingming;
    }

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private LocalDateTime starttime; // 开始时间

    private Integer time; // 使用时间，整数（单位：分钟）
    private Boolean isstop; // 是否结束

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public String getDianzhuangbianhao() {
        return dianzhuangbianhao;
    }

    public void setDianzhuangbianhao(String dianzhuangbianhao) {
        this.dianzhuangbianhao = dianzhuangbianhao;
    }

    public Float getMeishidanjia() {
        return meishidanjia;
    }

    public void setMeishidanjia(Float meishidanjia) {
        this.meishidanjia = meishidanjia;
    }

    public LocalDateTime getStarttime() {
        return starttime;
    }

    public void setStarttime(LocalDateTime starttime) {
        this.starttime = starttime;
    }

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public Boolean getIsstop() {
        return isstop;
    }

    public void setIsstop(Boolean isstop) {
        this.isstop = isstop;
    }

    public ChongdianzhuangOrderEntity() {
    }

    public ChongdianzhuangOrderEntity(Long id, String orderid, String dianzhuangbianhao, Float meishidanjia, LocalDateTime starttime, Integer time, Boolean isstop) {
        this.id = id;
        this.orderid = orderid;
        this.dianzhuangbianhao = dianzhuangbianhao;
        this.meishidanjia = meishidanjia;
        this.starttime = starttime;
        this.time = time;
        this.isstop = isstop;
    }
}
